package org.samcolon.log4j2_demo1;

import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: 日志相关接口
 * @author: Sam.zhang
 * @date: 2021/10/27 - 10:18
 */
@RestController
@AllArgsConstructor
@RequestMapping("")
@Slf4j
public class LogController {


	@GetMapping("/test")
	public String test(){


		
		log.info("test - test");
		return "test";
	}

}
